package com.draven.service;

import com.draven.entity.User;

/**
 * Created by Draven on 2017/4/9.
 * E-mail:draven1122@163.com
 */
public interface UserService {
    public static final String SERVICE_NAME = "userService";

    User getUser(String id) throws Exception;

    int addUser(User user) throws Exception;

    int addUserSelective(User user) throws Exception;

    int removeUser(String user) throws Exception;

    int modifyUser(User user) throws  Exception;

    int modifyUserSelective(User user) throws  Exception;

    User login(String username,String password) throws Exception;

}
